﻿using System.Collections;
using System.Collections.ObjectModel;
using ParaEditor.Domain.Entities;

namespace ParaEditor.DAO.ParaDAO
{
    public class Para4009DAO:BaseDAO
    {
        private static Para4009 p4009 = new Para4009();
        public Para4009DAO()
            : base(p4009)
        {
        }

        public ObservableCollection<Para4009> GetObjectByInfoVer(int infoVer)
        {
            ObservableCollection<Para4009> list = new ObservableCollection<Para4009>();
            IList iList = base.GetObjectByInfoVer(infoVer);
            foreach (Para4009 item in iList)
            {
                list.Add(item);
            }
            return list;
        }

        public ObservableCollection<Para4009> GetAllObject()
        {
            ObservableCollection<Para4009> list = new ObservableCollection<Para4009>();
            IList iList = base.GetAll();
            if (iList != null)
            {
                foreach (Para4009 item in iList)
                {
                    list.Add(item);
                }
            }
            return list;
        }
    }
}
